<template>
	<view class="paymethod">
		<view class="pay-method-top" @click="show=!show">
			<view>支付方式</view>
			<view>
				<view>在线支付</view>
				<image class="right" :src="asyncImgs.my.icon_right_3" mode=""></image>
			</view>
		</view>

		<u-popup mode="bottom" v-model="show" border-radius="22">
			<view class="pay-top">
				<view>支付方式</view>
				<image @click="show=!show" :src="asyncImgs.home.close" mode=""></image>
			</view>
			<view class="pay-tips">修改支付方式，会影响已选的配送方式，提交订单前，请确认 好信息！</view>
			<view class="pay-way">
				<view class="pay-way-list" :class="payway==1?'select-way-list':''">在线支付</view>
				<view class="pay-way-list" :class="payway==2?'select-way-list':''">货到付款</view>
				<view class="pay-way-list" :class="payway==3?'select-way-list':''">微信支付</view>
				<view class="pay-way-list" :class="payway==4?'select-way-list':''">账户余额支付</view>
			</view>
			<view class="confrim">
				<view>确定</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
				payway: 1
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	view {
		color: #262626;
		font-size: 26rpx;
	}

	.paymethod {
		margin-top: 24rpx;
		padding: 46rpx 36rpx;
		border-radius: 22rpx;
		background-color: #FFFFFF;

	}

	.pay-method-top {
		display: flex;
		align-items: center;
		justify-content: space-between;

		>view:last-child {
			display: flex;
			align-items: center;

			.right {
				margin-left: 20rpx;
				width: 12rpx;
				height: 20rpx;
			}
		}
	}

	.pay-top {
		height: 109rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0rpx 36rpx;

		view {
			font-size: 36rpx;
			font-weight: bold;
		}

		image {
			width: 40rpx;
			height: 40rpx;
		}
	}

	.pay-tips {
		padding: 14rpx 36rpx;
		background-color: #FBF8D9;
		font-size: 24rpx;
		color: #DE6A1C;
	}

	.pay-way {
		padding: 24rpx 36rpx;
		display: flex;
		flex-wrap: wrap;

		.pay-way-list {
			margin-right: 24rpx;
			margin-bottom: 24rpx;
			padding: 18rpx 36rpx;
			border-radius: 30rpx;
			background-color: #F2F2F2;
			font-size: 22rpx;
			color: #BFBFBF;
		}

		.select-way-list {
			padding: 16rpx 34rpx;
			border: 1rpx solid #F2270C;
			background-color: #FCEDEB;
			color: #F2270C;
		}
	}

	.confrim {
		margin-top: 360rpx;
		padding: 12rpx 36rpx;

		view {
			width: 100%;
			height: 76rpx;
			line-height: 76rpx;
			text-align: center;
			font-size: 30rpx;
			color: #FFFFFF;
			background: linear-gradient(90deg, #F3150C, #F14B0C);
			border-radius: 38rpx;
		}
	}
</style>
